<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>

<body>
  <div id="app"></div>
  <script src="./compile-to-function.js"></script>
  <script>
    var options = {};
    var ref = compileToFunctions("<div id='app'>{{ name }}</div>", {
      // 用户配置编译器选项，定制编译器
      shouldDecodeNewlines: shouldDecodeNewlines,
      shouldDecodeNewlinesForHref: shouldDecodeNewlinesForHref,
      delimiters: options.delimiters,
      comments: options.comments
    }, this);
  </script>
</body>

</html>